import requests


def main():
    sources = {
        'aoaostar': 'https://ghp.ci/https://raw.githubusercontent.com/aoaostar/legado/release/cache/3fc2c64c5489c491de6284dca2c2dfce7f551bc9.json'
    }

    for key in sources:
        url = sources[key]

        r = requests.get(url)
        with open('input/{}.json'.format(key), 'wb') as f:
            f.write(r.content)


if __name__ == '__main__':
    main()
